@extends('admin::layouts.master')
@section('title')
    登录日志列表
@endsection
@section('tab')

    <div class="layui-fluid">
        <div class="layui-row layui-col-space15">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-body ">
                        <form class="layui-form layui-col-space5">
                            <div class="layui-input-inline layui-show-xs-block">
                                <input type="text" name="phone" placeholder="请输入手机号码" autocomplete="off" value="{{$arr_search['phone']}}" maxlength="11" class="layui-input"></div>
                            <div class="layui-input-inline layui-show-xs-block">
                                <button class="layui-btn" lay-submit="" lay-filter="sreach">
                                    <i class="layui-icon">&#xe615;</i></button>
                            </div>
                        </form>
                    </div>
                    <div class="layui-card-body layui_overflow_y">

                        <table class="layui-table layui-form">
                            <thead>
                            <tr>
                                <th>序号</th>
                                <th>手机号码</th>
                                <th>验证码</th>
                                <th>获取时间</th>
                            </thead>
                            <tbody>
                            @foreach($data as $key=>$value)
                                <tr>
                                    <td>{{$key+1}}</td>
                                    <td>{{$value["phone"]}}</td>
                                    <td>{{$value['code']}}</td>
                                    <td>{{$value['created_at']}}</td>
                                </tr>
                            @endforeach
                            @if($page_data['total'] == 0)
                                <tr><td colspan="66" style="text-align: center">暂无数据</td></tr>
                            @endif
                            </tbody>
                        </table>
                    </div>
                    <div class="layui-card-body ">
                        <div class="page">
                            {{$page_link}}
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection

@section('tab_js')
    <script>
        layui.use(['form'], function(){

        });
    </script>
@endsection




